Memoization here is a little pointless, I guess it doesn't matter either way though.