change from shortestTree to dijkstra

because it's more memory efficient
cleanup