Fixed error in ranking

One bug fixed - when comparing inds, self comparison has been removed.

There are still some other ranking bugs to be fixed.