Implementation of some sorting algorithms in C#