Working on a  wrapper of the block match code

Tested it and it works, now to write in the two phase algorithm