Implemented bubbleUp and bubbleDown methods. Renamed isGreater method to hasHigherPriority.