changed main high-perfomance function cudaToCount*: they are more flexible and independently for number of threads changes now + small optimisation about calculating excess polygons