Added the total_distance function
moved least_cost_path to dijkstra.py from digraph.py, changed server.py to accomodate change