fixing segment fault in qsort
removing unwanted comments from qsort