Customize Customer

Does anyone experienced on customizing the Customer Doctype to a tree structure? I wanted have the Customer to be able to have its own network of subsidiaries.