Data structure test Herman tree and coding