Quantization of Scalar Fields in Curved Background and Quantum Algebras