Downsamples the resolution of a matrix
counts : ndarray (N, N)
contact counts matrix to downsample
lengths : ndarray (L, )
chromosomes lengths
coef : int, optionnal, default: 2
downsample resolution of the counts matrix by coef
target_counts, target_lengths : ndarray