Add image for debugging proccessing. Find sorting problem while solve special cases for "i" and "j"
Resolve special cases: "i", "j"