Finished part of NodeInitializer

Finished sorting algorithm which corrects the distance that each node
thinks it is from its neighbors