A Method for Solving Singular Integrodifferential Equations