removed redundant lexeme counter and validate bounds of tokensLexemes vector