Examples
corn(matrix(1:10000, 100))
#> [,1] [,2] [,3] [,4]
#> [1,] 1 101 9801 9901
#> [2,] 2 102 9802 9902
#> [3,] 99 199 9899 9999
#> [4,] 100 200 9900 10000
corn(matrix(1:10000, 100))
#> [,1] [,2] [,3] [,4]
#> [1,] 1 101 9801 9901
#> [2,] 2 102 9802 9902
#> [3,] 99 199 9899 9999
#> [4,] 100 200 9900 10000