Replaced c arrays with std::array