TernScope: Efficient Ternary Endoscopic Segmentation Hardware Co-Design | HACKOBAR_