Type 2 group node is of type Node now. GroupNode is only for type 1 group trees.

Introduced new class ObjectPool to reuse existing Pair and Query objects.

Program completes much faster with logging turned off.

Creates new file for optimization ideas (possible_optimizations.txt)