Added some comments. Tested for a simple invertible 3x3