SICP 2.27: Reversing Nested Lists