A clustering algorithm of trajectories for behaviour understanding based on string kernels