package to test slices/array access in Go and C++