R package to cluster temporal data into synchronous regions