add algorithm class package