Added next_token method for tokenizer