Pre-processing for Constrained Pattern Mining