update BinaryCalculator.cpp