Add algorism code