implemented p09 - pack - combine consecutive dulicates into sublists