remove dups from array in linear time