SMS: Fundamental algorithms :