ex 1.1.28 - remove duplicates before binary search