Returns a mask for interchromosomal interactions
lengths : ndarray, (n, )
lengths of the chromosomes
mask : ndarray of dtype boolean
boolean mask