added/updated cachematrix.R