Working on suffix arrays