Use setindex! to implement append!