solution: remove duplicates from sorted list 1&2