Created cache matrix and solution for inverse