TraverseGrid() working, sample converted to use it; further notes from the paper, plus hash and index routines