fixed vertex sorting bug in visibile context
working visibility in basic scenarios
fixed some edge cases in visibility
fixed bug related to the order in which points are inserted into the visible polygon