Dynamic trees for streaming and massive data contexts