added bit reversal of numbers