cleaned up rngs
line intersection and tests. polygon duplicate filtering