I've added the importance check using the entropy method, I planned to do pruning also but I'm really out of time and efforts. I've changed the return type of getImportance to double(as it should be) also fixed a minor bug in the tree, it should be good now
changed the getImportance function to use the new method, all get importance are the same, consider polymorphism