Fix logistic regression test failure and test suite cleanup
Allow RDD.takeSample to give samples bigger than the RDD

Before, when withReplacement was set to true, we would not get a sample
bigger than the RDD's count().
Added unit test for K-means, and fixed some bugs