edited cachematrix.R file with Assignment 2 functions