getNeighbors changed, mapHashRepeat refactored