Similarity solutions of nonlinear partial differential equations