Replace Pair class with std::pair.