Agreement and Consensus Problems in Groups of Interacting Agents