updated cachematrix.R file to include functions