Adding compact hash algorithm for the CPU -- drops memory usage and
for more levels of refinement, speeds up the neighbor calculations.