added code to delete min heap