find cross correlation lag by optimization
This paper has an algorithm that seems to try to do what you're reqeuesting.  I don't have time right now to look at implementing it, but may do in a few days.

The paper uses the signal model:



and the RLS algorithm to modify a filter:



I'm not sure whether this qualifies as any different, as it seems to use the peak of the autocorrelation as its delay estimate.