modified cachematrix file to submit assignment2