Update cachematrix.R

change the layout