Main Application for Path and Pattern Merger