Groupwise Distance Learning Algorithm For User Recommendation Systems