Added memoization-based task

Memoization is pure awesomeness!