Store length of processed array and current position in it
Added test for current position and length
Added tests for edge cases of position and length tracking
Lost about 10% on tracking. May be stack of contexts would be faster