add min-max-binary-heap
fix the bugs in binary-heap