Compiling Dijkstras, but infinite loop at runtime.