Correcting error in steps to find the minimum nonzero residual degree.
Correcting indexing error and implemented a better method to move rows to the bottom of the matrix in the CHOOSE step.