Update cachematrix.R

Built functions for problem in week 2