Deformation Theory of Algebras and its connection to quantization I