Added the quicksort for the the angles.