Added function declarations for qsort & partition