Compute A^(-1) of A = {{ 1, 0, 0 }, {0, 2, 0 }, {0, 0, 5 }} (diagonal)