add heap_delete function