Best Circulant Shift of Signal
[shift,value] = BestShift(stat)
stat-tree (output by CalcShiftStat)
maximum depth of tree-search
path corresponding to optimal shift
minimizing value attained by optimal shift value(1) holds value of best shift
Finds the path from root to leaf on a complete tree of depth D which minimizes the sum of values at the leaves.