This function calculate block motion vectors (with integer pel accuracy), using hierarchical block matching algorithm.%An example of main function calling this function is "MEMBA", which can be entered on the command window.%The function also use the func