Change todo list. Now I have 'smartest' algorithm in my mind.