some change of run.sh

the run.sh has a wrong shell when judge whether there is a result
folder.
use shared_ptr<Node> instead of Node*

In the decisionTree making file, use shared_ptr instead of Node*
pointer to make pointer more safe