cpDecomposition function

Canonical Polyadic Decomposition