change source.c and add algorithm.c