Added interior and exterior functions.
Made interior and exterior closed curve method functions.