committing my updated version of cachematrix.R for ProgrammingAssignment2