Collection of basic algorithm implementations