[SPARK-2544][MLLIB] Improve ALS algorithm resource usage

It's a good idea. Done