Octave code to extract wavelets using PSO