c++: calculate average time taken based on samples
ruby: record benchmark result in json format
go: pull things out of main.go
go: move vector into main package