shortest path program commit 1