Updates to djikstra and betweeness algorithms