Organizing list of tuples,"[(1, 4), (4, 8), (8, 10)]"