Spatial hashing