Finished imperative tournament tree sort part