New Sorting-Based Lossless Motion Estimation Algorithms and a Partial Distortion Elimination Performance Analysis