updated cachematrix .R with assighnment function codes