Algebraic phase unwrapping with self-reciprocal polynomial algebra