Quick PHP implementation of SpotSig algorithm