A GENERAL ALGORITHM FOR MULTIDIMENSIONAL CAUCHY PRINCIPAL VALUE INTEGRALS IN THE BOUNDARY ELEMENT METHOD