Joint SpatioTemporal Alignment of Sequences