SPARK-1462: Examples of ML algorithms are using deprecated APIs

This is a work in progress any comments are welcome. This will also fix SPARK-1464: Update MLLib Examples to Use Breeze.