Implemented additive algorithm.