updated cachematrix.R with assignment edits