A Stable Sign Estimation for Algebraic Phase Unwrapping