replace sorting prototype with tournament