Add answer ch3.ex10
Done ch3.ex20
Done ch4.ex21
Optimize code
Done ch3.ex22