Comparison of three curve intersection algorithms