Update algorithm.c

Missing }