added an epsilon test to the root finding algo