High performance algorithmic method design for energetic analysis in molecular dynamics