Implementation of array sorting algorithms in Go