Own implementation of quicksort.
Stackoverflow occurs on sorted array, if first element in array is chosen as pivot element -> O(n^2).