ZTest: use implementation from commons-math

commons-math provides a better implementation of this functionality, and
is already a project dependency.
Merge pull request #8 from msperlich/master

ZTest: use implementation from commons-math