Added template version of Shell sort.