Program to analytically multiply two quaternions