Added class LinearGradientAlgorithm.