Implement Gnome Sorting