added flatten, pattern matching on list of lists, and Data.List functions. Still working on Transpose