Finished cleaning up code. No major changes.
Solved the memory leak issue by moving around the pointers and making a copy fo the patient inside of the PQ_node. No memory leaks, no erros. Valgrind pure.