Rebuild metric tree