QuickSort implementation

I did this very quickly, it needs some fixes.