Implemented RationalDynamicArray.