algorithms now should return the position of the most important char instead of the char itself