modified cachematrix.R for assignment2

modified cachematrix.R for submission