Altered search strategies to use hashsets