Quicksort naive implementation