Exploring some simple implementations of sorting