new demo application which finds peaks on the spectrum.

x_2 bug fixed. One object created in SFunc method was not deleted.