Refactoring

  Auxiliary function mkNode and mkLeaf
  Cleaned function tree.grow
Merge branch 'master' into dev
Added nmin constraint to tree.grow
Merge branch 'master' into dev