Added polygons intersection method

* Added source code
* Added tests