Added my code to cachematrix program