Sorting algorithms implementation in .NET