Training with 3 ways Quick sort