Spark app for generating dense matrices used in Spark MLlib classification algorithms