Tree data structure in Golang