Flag arrangements and triangulations of products of simplices