Implemented deleteMin and deleteMax