Text this: Partitioning technique for transforming perfect binary trees into single-row networks