Optimization: Avoid building all adjacent cells into the heap, do a manual scan of nearby cells for the purposes of finding neighbors. Saves some heap construction time. Also cache the cell size to save a bit of computation.