Added classes for algorithms