Added bin2dec function