Some detail information about little and big endian. function bin2dec and dec2bin
changed size != 0 to > 0