Dijkstra's and stdev/mean update functions written