Implemented MinHeap and implemented Comparable on Reaction.