A Multitype Birth–Death Model for Bayesian Inference of Lineage-Specific Birth and Death Rates