Added cachemean.R

Added cachemean.R for test exercise