or should states be all the leaves from the sample...
# codereview
u
or should states be all the leaves from the sample and mode be a flag on them?