Ray Method for Solving Dynamic Problems Connected With Propagation of Wave Surfaces of Strong and Weak Discontinuities