Modified cachematrix.R, included the solution.