Added Maven license plugin.
Implemented memoization / caching of functions.