flatmap implemented
cleaning up the implementation
flatMap -> mapcat
Merge pull request #53 from danielribeiro/flatmap

flatmap implemented