typescript implementation of the greedy first search djikstra's shortest path algorithm, compatible with javascript projects too of course