SPARK-4022 [CORE] [MLLIB] [WIP] Replace colt dependency (LGPL) with commons-math

This change replaces usages of colt with commons-math3 equivalents, and makes some minor necessary adjustments to related code and tests to match.
The license file in Hadoop does have this empty line: https://github.com/apache/hadoop/blob/trunk/LICENSE.txt