C# Implementation of Sorting Algorithms