IndexTreeNode find first next and last prev used nodes.