Dijkstra sqrt algorithm
Update problem solution