how to calculate 2 complement - Search