Refactored Balanced and Constant functions in the DeutschJozsa
and prepared output for presentation