Included gnomeSort method