Simple implementation of classic sort algorithms in C#