add pop method to heap
add pop method to heap