Add BandwidthEstimator to estimate the required bandwidth for the segments. Also includes unit test for the change. Change-Id: I28262424e2ed6ceebdf81e2b11dcd67feba1d68c