1*N coherence computation and tests

Thanks for your reply, you really helped a lot !