Dijkstra optimisation, generation takes 0,5 seconds now on 100*100 :)