moved allocate flag initialization into infinity norm code block for norm routines