A gradient-like method for quasidifferentiable optimization