map/reduce sample implementation in Golang