Implemented Dijstra class.

Implemented Dijkstra class so damn well, Dijkstra himself is spinning in his grave. Yeaa boii.