scala 99 problems.
 7th - flatten. added flatMap implementation + comments