Indexing and behaviour modelling of team sports