PCMTreeLocateMidpointsOnBranches function

Find the middle point of each branch longer than a threshold