fixed decimalToBinary and the switch statements