Shell sort implementation (cuira and shell gap seqnences).