Multidimensional signal compression using multi-scale recurrent patterns with smooth side-match criterion