Quick Sort algorithm in c#