added basic functions and prototype for quicksort