Added algorith for consecutive numbers in a list