added code for cachematrix assignment and test code