Solutions of the Yang-Baxter equation: groups, algebras and braces