add answers for first two assignments

i just add my answers on my repo. this include solutions for first two assignments with example assignment

Don't need the if: 
```scala
 def singleton(trees: List[CodeTree]): Boolean = trees.length == 1
```