Scala implementations of 'Pearls of Functional Algorithm Design' by Richard Bird