A new algorithm detecting all branches of driving point characteristics in PWL resistive circuits