Pipe3D, a pipeline to analyze integral field spectroscopy data: I. New fitting philosophy of FIT3D