Library of algorithms in C#