Improved the C# bubble sort