Popular agoritms implemented in c#