Added mapMaybe

This was imported from https://github.com/ulfs/holumbus
commit 16ef0a41e222f91352c515215f6cd0a852e5335a
by Ulf Sauer<ulf.sauer@gmail.com>