shortest path algorithm initial version added