Revised Block Matching algorithm.

Use iBM first to generate coordinates