Added sum of squares decorator

A decorator for adding an ssq method to a function. The semantics are a
bit weird, so make sure you understand how it deals with the arguments.