Update cachematrix.R

completed assignment 2