added comparison counting, and finished out shell sort