Made come changes to cachematrix.R and added testCases.R