Moved sme functions to their respective models. Added algorithm classes and skeleton controller actions for calculating the user preferences.