Added two test cases.

Added testcase1.R and testcase2.R to test cachematrix.R
Fixed a typo in cachematrix.R.