Quartic equation solver functions with lightweight complex number class in PHP