Study in writing binary search in Go and C