Quicksort uses filter instead of list comp