Use Plane class. Use std::array.