Reduced differential transform method for solving parabolic-like and hyperbolic-like equations