Added function to calculate the inertia tensor of a selection
Add function to rotate a selection based on a rotation matrix