generated all the trees