Pl2 optimization

Optimizing the PL2 weighting scheme.
You're assuming here that `P2 >= 0` but in fact it can also be negative (if `ratio < 1`, `log2(ratio) < 0`).  I added a line to print out P2, and it was negative for 3 of the 4 terms I tried searching for.