[2, 3, 1, 3] 1 adding j = 1 t = 2 i = 0 0 1 adding j = 1 t = 1 i = 2 0 [1, 1, 2, 2]