Wavelet Theory Approach to Pattern Recognition