update Memoize for use with class methods, main:Object