Robinson-Schensted Algorithm

n: 
permutation: