Update Pair.java

tried to improve readability