Added ALGORITHMS