Edited the Matrix Inverse Function