designTree function

Compute a design matrix or non-negative LS