R programming Assignment 2

functions to explore caching  of long operations