Fixed bug in Dijkstra's algorithm implementation + tests

Added tests for basic algorithms for DiGraphs. While adding tests, found
nasty bug in dijkstra. Fixed it (probably?).
Tests algorithms for DiGraphs.
Fixed Prim's MST algorithm for directed graphs.
Added test for Bellman-Ford with negative weights