Adding final cachematrix.R file to repository