I am stupid, I made a struct that ordenates everything
into a different way, but then I forgot to change the
variables on the dijkstra loop to the correct order and
ended up screwing everything...
At least I'm sure I won't be doing this mistake again in
the future.