Calculate moment of inertia of a thin rod about one end