Update cachematrix.R

version 1 for assignment 2