* @brief Print the tree to a dot file. You can convert it to picture with * graphviz * @param ofs output file stream to print to * @param node current node to print * @param parent_index current node's parent node index, this is used to draw * the link from parent to current node * @param index current node's index of level order which is used to name the * node in dot file * @param parent