add alorithms class