Fast dynamic algorithm for storage allocation in telecommunication networks