Finding Periodic Patterns in Multiple Sequences