Adding capability of storing the shortest path tree.
Merge pull request #12 from PetterS/store_parents

Adding capability of storing the shortest path tree.