added the tested uniqueCpp function