	class ParallelRankThread extends Thread {

	private int[] readArray;
	private int[] resultArray;
	private int threadNum;
	private int threadIndex;

	private int currentItem;
	private int currentPosition;
	private int startIndex;
	private int endIndex;
	private String threadName;
	private int currentThreadNum;

	public ParallelRankThread(int[] readArray, int[] resultArray, int threadNum, int threadIndex) {
		this.readArray = readArray;
		this.resultArray = resultArray;
		this.threadNum = threadNum;
		this.threadIndex = threadIndex;

		this.currentItem = 0;
		this.currentPosition = 0;
		this.startIndex = 0;
		this.endIndex = 0;
		this.threadName = "";
		this.currentThreadNum = 0;
	}

	@Override
	public void run() {
	  threadName = Thread.currentThread().getName();
	  currentThreadNum = threadIndex;

	  int blockSize = (int) Math.ceil(readArray.length / threadNum);
	  startIndex = currentThreadNum * blockSize;
	  if (threadNum - 1 == currentThreadNum) {
			endIndex = readArray.length;
	  } else {
			endIndex = (currentThreadNum + 1) * blockSize;
	  }

	  // Rank sort
	  for (int j = startIndex; j < endIndex; j++) {
			currentItem = readArray[j];
			currentPosition = 0;
			for (int i = 0; i < readArray.length; i++) {
				if (currentItem > readArray[i]) {
					currentPosition++;
				}
				if ((currentItem == readArray[i]) && (j < i)) {
					currentPosition++;
				}
			}
			resultArray[currentPosition] = currentItem;
	  }

	}

}

@@ -1,9 +1,8 @@
-%09
 class Pa
@@ -35,17 +35,16 @@
 hread %7B%0A
-%0A
 %09private
@@ -716,18 +716,17 @@
 un() %7B%0A%09
-  
+%09
 threadNa
@@ -765,18 +765,17 @@
 ame();%0A%09
-  
+%09
 currentT
@@ -800,18 +800,17 @@
 ndex;%0A%0A%09
-  
+%09
 int bloc
@@ -865,18 +865,17 @@
 dNum);%0A%09
-  
+%09
 startInd
@@ -910,18 +910,17 @@
 kSize;%0A%09
-  
+%09
 if (thre
@@ -985,18 +985,17 @@
 ength;%0A%09
-  
+%09
 %7D else %7B
@@ -1050,16 +1050,14 @@
 e;%0A%09
-  
+%09
 %7D%0A%0A%09
-  
+%09
 // R
@@ -1066,18 +1066,17 @@
 k sort%0A%09
-  
+%09
 for (int
@@ -1423,10 +1423,9 @@
 m;%0A%09
-  
+%09
 %7D%0A%0A%09

fix again indentation on parallel thread