Debugging

Debugging,for loop, getRank run out of array index of.