add missing boundary extraction algorithm