Adds spatial hashing. Not done yet.