implement misc/Pair class