make_sd function

Do a sum/difference transformation