Added functional composition functions.

Hello,

I've added a couple of simple functional composition functions, as I found the need for them cropping up again and again.

Ollie