tree must be sorted!
added example in readme