optimise letter placement by frequency