A powerful array based on implicit treap data structure for C++ and Python