Refactor|HEdge: Moved all HEdge_* functions to methods of HEdge