Provides class which can be used to memonize the result of an operation.