Improved the next() next(Index) getNeighbors methods.