Changed from a flat array to std::array

Yay! Iterators!