1. Arrange the if/switch statements follow the rules of halfman tree. Minimize the unexpected branch call.