exercise 1.29 simpson-integral