Changed octtobin, hextobin and isodigit macros into functions