Studies on frequency stabilization of Nd:YAG laser