new procedure to transform a sequence of flags to resolve Schubert problems