Smaller, more accurate regression forests using tree alternating optimization