how to calculate twos complement - Search