Fixed some bugs. Now sorting exits and exitCells CCW. Fixed temporary end blocks operations.