update memoize function
release 0.0.8