ZTest: use implementation from commons-math

commons-math provides a better implementation of this functionality, and
is already a project dependency.