Changes the cachematrix.R to implement functions