cgo: add binary tree c and go code