Added Energy and Gradient functions for Angles and Edges, which use the FreeSurfer energy/gradient functions.