Added the sum of three algorithms.