Median Based Algorithm as an Entropy Function for Noise Detection in Wavelet Trees for Data Reconciliation