fixed bugs in deleteMin and remove