cgo: add quick sort cpp code