Discrete Fourier and Wavelet Transforms: An Introduction through Linear Algebra with Applications to Signal Processing