fix bug function getTreeIndexByAlpha by adding infinity value of alpha