Adding problem 14

Need to implement the cache