lru cache python leetcode