Re-wrote quicksort
Added function largestDivisible
Added functions chain and numLongChains