Updated cachematrix. Completed both functions.