calculate crosslink map