Decision tree is edited to work properly in degenerated cases.
Also decision tree is refactored to be used in everywise approach
and registered in ltr_client.

Change-Id: Ib3a09ce29fae4473d9e8e2f8028ace34a5f54d06