fix index overflow (#12)
This resolves #12 (closed).
Not very elegant. Deeper analysis of the intercalated loops should allow for a more concise solution...
This resolves #12 (closed).
Not very elegant. Deeper analysis of the intercalated loops should allow for a more concise solution...