Adaptive Function Chaining for Efficient Design of 5G Xhaul