Tree nodes generation on the canvas
only one debug function was left for BTree