A Copula-Based Algorithm for Discovering Patterns of Dependent Observations