Add source files for algorithm lib