completed cachematrix for inverse