switching the conditions in Sign() results in more efficient assembler code
remove one condition in SAO
move code around for slightly reduced computation time