Implementation of Two-Phase Kernel Estimation for Robust Motion Deblurring