I need to place cells of every 2nd and 3rd column in sorted order. Thus, I need to swap X[N][2] and X[N][3] if X[N][2] > X[N][3], where X - matrix, N - any natural number