C# Some algorithms w/different methods.