TreeSample