flat-to-tree (npm): Convert flat array into tree structure
Keywords: flat to tree