Solutions of chapter 4 (4.1 ~ 4.7)
Update Chapter4Solution.scala
Merge pull request #67 from yrbahn/master

scala solutions of chapter 4