Efficient Algorithms For The Analysis Of Hi-C Contact Maps