I am basically dealing with the following problem where i am trying to alter t
public void InsertSort() { int t, j; for (int i = 1; i < _leght; i++) { t = _arr[i]; for (j = i; j > 0; ) { if (_arr[j - 1] == t) t = -1; if (_arr[j - 1] > t) { _arr[j] = _arr[j - 1]; j--; } else break; } _arr[j] = t; } }