Creating Epsilon nodes and counting terminal nodes