Open in TheBrain

Complexity analysis and improvements