Collision detection algorithm of a continuous type using spherical extreme vertex diagrams