Checking for duplications in the stree

Checking for duplications in the stree