Completed implementation of TreePartition, TreePart and modified TreeGraph to enable (optional) use of parts