correct index bug in bubble_up
correct index bug in bubble_down
automatic check validity of heap, used in unittest
external caller to clear up heap
change testing to unittest and add Monte Carlo simulations