cachematrix.R has been modified to submit for assignment 2