added small optimization in range_collect_vectors - erase() replaced by copy from back and pop_back()