Implementing a quicksort algorithm in C# (with a bonus Go implementation)