Sorting algorithms and data structures in Go