Small script to create hadamard matrix.
Allow matrices smaller than the number of passes.