shell sort in c with classes