commit code for algorithms