A Direct Method for Boundary Integral Equations on a Contour with a Peak