Gradient trees