Coursera R Programming Assignment2

Caching and scoping exercise