Solve SICP exercise 2.26
Solve SICP exercise 2.27