Uneven tree matching