PPOLV's public domain algorithm
Tests and bug fixes to ppolv algorithm