Changed intersection return type from std::pair to std::array.