outline the heap merge algorithm