Group consecutive numbers in array. Range 1 = -1 -> 2 Range 2 = 5 -> 6 Range 3 = 8.