finished the introduction of tournament algorithm