Finished

Added pickNextOptimalNeighbor function