add record support to quicksort and bubblesort