update sicp: add answer to exercise 1.29 and 1.30