scala 99 problems.
 7th - flatten. added comments and 2nd impl