Bug Fix on Torsion Calculation

atom_ids doesn't contains all sub-branches anymore. Use the information
from all_atom_ids to rotate a branch including all sub-branches.