Algorithm To Find Shortest Path Railway