Identifies numerical indices of the end nodes of a rktree from the matrix of hierarchical flags.
rktree
Useful links