Implementation of cachematrix.R

- Based of the supplied same implementation of cachemean methodology.