Fixed bugs in spectral norm A() function in C and Java code.