Multiple ways to determine the shortest distance between two nodes implemented.
First commit, out of 2.