con_rng function

consecutive range in vector