Architecture of the fast Walsh-Hadamard and fast Fourier transforms with charge transfer devices