Add scratch code for deformable template matching