The State Space Method for Solving Singular Integral Equations