algs4; creative problem 1.1.29 - equal keys in sorted array