Somewhat broken continuous variables tree

WIP: partially implemented growing tree on pure continuous variables,
something is not quite right and needs fixing.