Commit edits to cachematrix.R for r programming assignment 2.