Numerical solution of nonlinear partial differential equations arising in fluid flow through porous medium