Final implementation of algorithms for polarimetry conversion

Summary
Final implementation of algorithms for polarimetry conversion