initial commit based on sample code for cache mean of vector.
inital changes based on sample code provided for caching of mean of vector.