Changed arrays to std::vectors.
Reduced the vector sizes.