C# implementation of BubbleSort