Vectorize traiteIntention function
The result of the traiteIntention function is currently computed via a for-loop over the elements of a list. Vectorizing the computation would allow to gain speed and have a better understanding of the computations performed.