quicksort in swift
a binary search in swift