Re-wrote quicksort. Noticed that using 'var test = test || arr.length - 1' is dangerous if test might be 0 (false-y)