add order algorithm class