Improving solution times of stable matching problems through preprocessing