Upgrade commons-math from 2.2 to 3.2.
(cherry picked from commit 97391f54a4786d4031c06aa072027e798f142e97)