Implemented array tree to get keys and open cursors with a key rank.