Row and column insertion and deletion improved