Alternating trapezoidal method to evaluate cauchy integrals on the boundaries. This code is written for phi =1