Detection of domains in HiC data