Made `dijkstraLength` slightly more efficient
Solved #123
Fixed a bug in `primeIter`