Quicksort implementation in C#