Added Spark parallel training (first draft).