Changes in the class Algorithms

Some changes