Filled in the contents of cachematrix.R