Memoize

Here's an attempt at creating the `memoize` function. I noticed a comment was left to create it, and I am in need of it ;)