add some function into binaryTree and start working on adaboost training