Collection of useful algorithm implementations