modified shell sort loop ver