updated cachematrix.R file after completing programming assignment