Added code to the makeCacheMatrix function in cachematrix.R