added Algorithms.h