how to calculate two's complement - Search