Add Gnome sort

Refactoring to sort mixin