Update cachematrix.R

Upload homework. 2 functions.