Removes PHP Notice by initializing  in class_tree.php
Removes Undefined index notice by returning 0 when [] isn't set in knn.php
Removes undefined index (yes,no) notice