Optimization of Radio Access Networks Architecture for 5G