2-Complement function