Added solution to cacheMatrix.R