Latency-aware composition of Virtual Functions in 5G