Bandit working. Issues with custom iterators. Use C++ iterators please