Add QuickSort and an nlogn way of checking for duplicates in an array