first commit for algorithm