cgo: add linked list c code