A working min heap priority queue

Switch two argument that were passed into the comparator function and
added a few brackets to if statements and our priority queue works!