Modernize HitManagers & hit comparison operators
- Always sort hits in hitmanagers as they are added, avoid sorting on demand, and make it impossible to use inconsistent comparisons.
- Replace templated binary comparisons classes with non-templated classes, with templated operator() instead.
- Make sure that the same comparison classes can be used for std::sort and std::lower_bound
- replace BOOST_FOREACH with range-based for loop