Universal Generating Function Method