Section 2.2.3: nested mappings. worked through their (prime-sum-pairs) example, but still don't feel comfortable enough with (flatmap)
copied in their (permutations) code, to be annotated