cachematrix with the function that creates a special 'matrix'.