adding classes for Quick sort and merge sort