Update cachematrix.R

Add tests for the sigular cases.