Attempted Implementations of Various Algorithms in C#