Remove inline sorting algorithms from core headers