Upgrade commons-math from 2.2 to 3.2.
(cherry picked from commit 058b508e59454bbebbeba0835fcc35989314a761)