Commit edits to cachematrix.R for ProgrammingAssignment2