[WIP][SPARK-4844][MLLIB]SGD should support custom sampling.

JIRA: [SPARK-4844](https://issues.apache.org/jira/browse/SPARK-4844)