FEATURE: weighted union finder implemented.
FEATURE: code structure improvements.