Golang N-dimensional array implementation