trains and saves each tree, does not clog up cache