SICP 2.34: Horner's rule