Added mapOption and mapEither functions.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>