On phylogenetics of matrices in finite mathematics textbooks