Simplify "cross" loops

Fixes #14