implemented a binary space tree for the static objects. Currently, the collision detection is improven a lot since the checked objects is klg(n) where n is the number of static objects on the map. However, the constant factor k can be big in case the static objects are not evenly distributed.
fixed collision detection for polygons. Now it also checks for segment intersection for some specific cases. Add a line geometric object with multiple methods. Binary space tree is working correctly.