private static double[][] sortByRank(double[][] A, int aug){
		int index = 0;
		for(int i = 0; i < A.length-index; i++){
			boolean zeroRow = true;
			for(int j = 0; j<aug; j++){
				if(A[i][j] != 0)
					zeroRow = false;
			}
			if(zeroRow){
				for(int k = i; k<A.length-1; k++){
					for(int j = 0; j <A[0].length; j++){
						double T = A[k][j];
						A[k][j] =A[k+1][j];
						A[k+1][j] = T;
					}
				}
				index ++;
			}
		}
		return A;
	} //end sortByRank method