added shell sort
comparator fix