Cost optimal dimensioning of a large scale video on demand system