prog assignment 2 cachematrix.R update