a little program to calculate shortest path between two area