Added algorithm to sinf difference of sum of squares and square of sum