Actually, I think it might already work with any arrangement of i/j fastest/direction.
I'll test this and report back.