Multi-tree algorithms for computational statistics and phyiscs