Simple Solution

A limited solution for the Programming Assignment 2. The better option
is to use R.cache package.