Put a Tree Pattern in Your Algebra