add matrix_inverse snippet