changes made to cachematrix.R for assignment #2