support RandomLib
optimized LatticeSpace::move_to_neighbor