Binary search tree (ignore duplicated values)

The solution to http://dsalgo.openjudge.cn/dsmoochw6/2/.