Algorithms for a projection model of demographic indicators based on generalized age-dependent branching processes