Implemented three variants of Gnome Sort algorithm.