Learning sorting algorithms in Go