Algorithm For Spectral Matching Of Earthquake Ground Motions Using Wavelets And Broyden Updating