Topological Sorting in Golang