Trying a few additions to reduce the number of stored solutions, reducing the heap used.
- wrote a recursive function to remove all the nodes from the open solutions queue
- needed to switch to java.util priority queue to get the remove method