Perform bit reversal