Hadamard debugged

Infinite inner loop, incrementing the outer 'i' instead of the 'j'