More readable uniq() routine