Adaptive Memory Management in Video Object Segmentation