Keep results in a priority queue
Add a solution to the problem 86