Fixed the deleteMin function and did some testing.