made array copies
fixed arrayoutofbounds in testAlgorithm1
ensured arraycopy works
got selectkth mostly correct
algorithm 1 completed, working on quicksort