prevent division by zero

added check to prevent tau3/tau2 check from dividing by zero
Merge pull request #32 from xerxes1986/patch-1

prevent division by zero