DIRECTIONS:
Function Best-Match(m,n)
if (m=1 or n=1) then
return(1)
else
if (n is odd) then
k <- (n+1)/2
else
k <- n/2
endif
return(max{Best-Match(m,k)+Best-Match(m-1,n), Best-Match(n,m-1))
endif
end