Implement createLeafNode method
Implement createLeafNodeChildren method
Implement createBranchNode method

Some duplication left out
Implement connectBranchNode method