SICP 2.38 & 2.39: Folding Left and Right