Refactor convertor"s binary module

I modified the byte unit conversion method. This can reduce duplication of code that  looks like

For example, kilobit = 1024bit, megabit =  1024kilobit = pow(1024, 2)bit,and so on...