New sorting-based lossless motion estimation algorithms and a partial distortion elimination performance analysis