That works! Thanks. Can you write quicksort now and explain when quicksort is better than bubble sort and vice-versa?