Code clean for InversionPair.java