Update cachematrix.R

Adding test