Distinctness + Tree