debugged 1D median filter