Make locations a hash for fast retrieval
Naive implementation of block search