Added bt_unstable_sort<_Type>.
Added bt_arithmetic_mean<_Type>.
Refactored sorting and averaging out of bt_smoothed_time_step_policy_t.