This step is actually a little bit different. Actual operation is:
if delta>=0 x = 2*delta
else x = 2*(-delta)+1
this also guarantees that all deltas are positive