Deformations of algebras in noncommutative geometry