Rm mono

No, it absolutely works.  Note the range of the inner for loop.  The vectorized version only takes up one line, but I can't imagine it is any faster, and it is certainly 100x harder to read.