Add inverse to Matrix class