Updated cachematrix.R file

Updated the cachematrix.R file for assignment 2