add php quicksort and bin_search