Dynamic matched Filter for Gravitational Wave Detection