Create index of ArrayList using RedBlack Binary Tree