cachematrix.R modified with solution to assignment 2