added a couple tests and functionality and reduced extractMin()