Sort algorithms practice