fixed constructor of BinaryCalculator