Implemented exact search