Ported simple Pair class from old library.