Program finds fastest path