edit assignment2 cachematrix.R