Remove unnecessary logs
Major FIX: Add queue to store previous parents

this allows to properly determine node to which current node should be
connected after adding leaf node to the network, and resolves problem
with nested branches
Restore skipping nodes with only one child

Clean up code from junk comments
Fix indentation
Evaluate method connecting nodes for proper order

getting rid of these fixmes
Merge branch 'release/NetworkOptimalization' into develop