fixed bugs in remove min and priority functions
fixed bugs
RemoveMin bug.

Compiler recognizes that the condition is true but does not execute the
recursion.