scala quicksort using Array.concat with filter