Numerical minimization of a second-order functional for image segmentation