Added code for cachematrix.R and created a simple test case.