generalize hadamard(n) with a lookup table of known Hadamard matrices (fix #2)