Update cachematrix.R

complete the assignment2