Wrote a more efficient algorithm for pe1.