add SSR (single scale reintex)  algorithm