php build tree from flat data

-