regarding this problem on SPOJ: http://www.spoj.com/problems/CCROSS/, what is the topic or algorithm that can be used to approach this problem ?