fixed infinite loop if tolerance and iteration are both -1 in bisection
& added .class files in .gitignore