Remove index range check from operator[] and declare operator inline. Add at() method for index range check. Put size() method inline.