Basic sorting algorithms in go