header and .c files added for algo
#12