Memoize module implementation and unit tests
Merge pull request #275 from graphicore/new-memoize-module

inital memoize module implementation