branching processes simulation