Derive an expression for the period T of small-amplitude oscillations of a compass needle of moment of inertia I and magnetic dipole moment magnitude p that pivots freely in a uniform magnetic field of magnitude B. Express T solely in terms of I, p, and B.