add sum square difference problem