Updated cachematrix.R with the complete functions