Replaced vector with array since AVR C++ libraries are very incomplete.