Solutions of thermal management problems for terminal racks of in-row cooling architectures in data centers