MAINT: use more generic functions for the hidden markov model posterior decoding on trees