cache Matrix to calculate the inverse