Committing cachematrix.R for ProgrammingAssignment2