[WIP] fast squared Euclidean/Frobenius norm helper function

For NMF, primarily. Let's see if the tests pass.