Location-Based Hashing for Querying and Searching