exposed tree-insert to lua