Fixed circularListArrayBased to shift appropriately when an element is
removed.