Superposition and the Hadamard transform