removing older implmenation of Dijkstra algorithm