Bernstein’s method diabetes solution