Resolving all issues with Duplicates detector, applying a small memory improvement for wavelet transform

Modifying parameters for recognition such that they are close to
theoretical basis of the algorithm.