Added common implementation for a SLIM optimization algorithm.
Least square optimization algorithm for Sparse Linear Methods recommender.