lame implementation of spatial hash map