Complete ArrayList implementation.