updated cachematrix.R assignment