permuting letters to form words