sicp: added exercise 3.17
sicp: added exercise 3.18