Fast solver for Wave modelling and Fitting of coefficients