Hi James, I appreciate your kindness very much. I confirm that your modified version works well with my example. In my case, robustness is more important than computation time, so your class is sufficient for me now. I hope that developers will improve your algorithm, to reduce the computation time. Best Regards yoshimi