added ver3 to ver4 time difference
improve bit_reversal function