Adding a branch for pair mode, fixing a bug in Cluster mode, optimizing memory allocation, changing all analysed segment to {1,2,..,6} rather than {0,1,..,5}