Correction for compiling on Linux: removed unnecessary namespace specification in norm3d and used cmath in place of math.h