updated cachematrix.R with code for the two functions