I added an else statement to bubbleUp and a comment at its function call to justify certain calculation choices.
I implemented trickleDown.