some modifications.
implementation and test for heap data structure