Added quicksort function for array lists