An introduction to algebraic deformation theory