Dynamic search-window adjustment and interlaced search for block-matching algorithm