Made backindex_bag_t use std::numeric_limits<size_t>::max() instead of SIZE_MAX.