algs4; creative problem 1.1.28 - remove duplicates in sorted array