Calculate Moments of Inertia