fix bug at randomWalk() and make swap neighborhood simpler.