Remove unused headers and simplified code
Improved class layout and decorated with member functions with const
. Used operator[]
to avoid costly check before access as size is guaranteed to be two inside constructor.
Added c++11 tags for avoiding allocations.