Geometry optimization and calculation of molecular vibrational frequency