Add new entity type: polygon.
Add segments intersection function.