series: prototype implementation of the pow() caching mechanism.