first visible problem is that incorrect value is popped from i2.  perhaps problem in list of lists, or in my stack/queue pushes.  hopefully that will also help the core dump problem with s99