now caching the hash code of the Pair class