Building Temporal Templates for Human Behaviour Classification