A Complexity-Distortion Approach to Joint Pattern Alignment