code cleaning and timing can compare arrays of functions

- compareTime function now can compare arrays of functions
- moved the getRandomArray() function into a more appropriate place
(inside the main script and not the timing method)
bug in git, telling me quicksort.js changed