quicksort d3js visualization