Added method from geeksforgeeks
Added lru method from geeksforgeeks