added completed algorithms.