Update cachematrix.R

correct type