implemented the estimation of the gaussian distribution
selection threshold completed
computes cost function and gradient for collaborative filtering