ProgrammingAssignment2 cachematrix.R updated working version