Added factorization support

Should close zerotheliger/PowerConverters#15
Thanks to Techcable/PowerConverters for helping a bit with my thoughts.