Pixel sorting algorithms in Go