Block Matching Displacement Estimation: a Sliding Window Approach