cachematrix inverse computation