Reorder columns of a square matrix so that the first nonzero elements are in decreasing order
Useful links