Add a new feature: FunctionPool (WIP).

This feature is related to #65, but this early implementation
is likely to evolve soon.