added updated cachematrix.R file