Implement sum of squares algorithm, another trivial additive O(n) filter.