Simple matlab code for testing optimization algorithms on seismic inverse problems