Solved P18 and P19
Added comment re map(f).flatMap(identity) being equal to flatMap(f)
refactor: replaced xs.map(f).flatMap(identity) with xs.flatMap(f)
Solved P20