Calculate the Moments of Inertia