DSA tree repair