printArray and quicksort added