Update cachematrix.R with fully operational functions