reconstructive surgery algorithms