Fix bug in Dijkstra predecessors calculation

Fixes #34.